<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

use App\Models\Product;

class productFactory extends Factory
{

    protected $model = Product::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            
            'title'=>$this->faker->name,
            'brand_id'=>$this->faker->randomNumber(1),
            'category_id'=>1,
            'shop_id'=>$this->faker->randomNumber(1),
            'on_sale'=>$this->faker->numberBetween(0,1),
            'rating'=>$this->faker->numberBetween(1,5),
            'sold_count'=>$this->faker->numberBetween(100,99999),
            'review_count'=>$this->faker->numberBetween(100,99999),
            'price'=>$this->faker->numberBetween(100,99999),

        ];
    }
}
